const {ccclass, property} = cc._decorator;

@ccclass
export default class Td extends cc.Component {

    @property(cc.Label)
    valLabel: cc.Label

    init(val: string, width = 200) {
        this.valLabel.string = val || '';
        this.node.width = width || 200
    }
}
